//
//  NavigationBar.h
//  CanYouDoIt
//
//  Created by hoangtx on 7/8/13.
//
//

#ifndef CanYouDoIt_NavigationBar_h
#define CanYouDoIt_NavigationBar_h

#include "cocos2d.h"
#include "MyPageButton.h"
using namespace cocos2d;

class NavigationBar : public CCLayer{
    CCLabelBMFont* titleLabel;
    MyPageButton* backButton;
public:
    
    void onTapBackButton(CCObject* sender);
    void setTitle(const char* newTitle);
    virtual bool init();
    CREATE_FUNC(NavigationBar);
    virtual void ccTouchesBegan(CCSet* touches, CCEvent* pEvent);
    virtual void ccTouchesMoved(CCSet* touches, CCEvent* pEvent);
    virtual void ccTouchesEnded(CCSet* touches, CCEvent* pEvent);
};


#endif
